package org.adit.spring.hibernate.parser;
import java.text.SimpleDateFormat;
import java.util.Date;

public class MillisecondToDate {
	public static void main(String[] args) throws Exception {
		long yourmilliseconds = 1317694174 * 1000L;
		SimpleDateFormat sdf = new SimpleDateFormat("MMM dd,yyyy HH:mm");

		//String aaa = ((new Date(yourmilliseconds)) * 1000L).toString();
		Date resultdate = new Date(yourmilliseconds);
		System.out.println(resultdate);
		System.out.println(sdf.format(resultdate));
	}
}